package com.mulder.study.netty.client.demo;

import com.mulder.study.netty.ErrorHandler;
import com.mulder.study.netty.client.MulderNettyCommonClient;

public class WebClientTestMain {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		MulderNettyCommonClient client = new MulderNettyCommonClient(
				"news.naver.com", 80
				, new WebClientTestHandler("news.naver.com", "/")
				, new ErrorHandler() {
				        @Override
						public void handleError(int code, String messge) {
							// TODO Auto-generated method stub
							
						}
				    }
				, false
		);
		client.execute();
		
		client = new MulderNettyCommonClient(
                                "media.daum.net", 80
                                , new WebClientTestHandler("www.aromasoft.com", "/")
                                , new ErrorHandler() {
                                        @Override
                                                public void handleError(int code, String messge) {
                                                        // TODO Auto-generated method stub
                                                        
                                                }
                                    }
                                , false
                );
                client.execute();
    
		
		System.out.println("Last Words !!!");

	}

}
